﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace TA.Turbo
{
	/// <summary>
	/// Represents an uploaded file.
	/// </summary>
	public class UploadedFile
	{
		#region PUBLIC
		#region INIT
		#endregion
		#region EVENTS
		#endregion
		#region PROPS
		/// <summary>
		/// Gets the unique ID ('name' attribute) of the control to which this file belongs.
		/// </summary>
		public string ControlUniqueID { get { return this._uniqueId; } }
		/// <summary>
		/// Gets the name of the file.
		/// </summary>
		public string Name { get { return this._name; } }
		/// <summary>
		/// Gets the path to the temporary location on the server where the file was saved.
		/// </summary>
		public string Path { get { return this._path; } }
		/// <summary>
		/// Gets the size of this file, in bytes.
		/// </summary>
		public long Size { get { return this._size; } }
		/// <summary>
		/// Gets the length of time it took to upload this file.
		/// </summary>
		public TimeSpan UploadTimeSpan { get { return this._uploadTimeSpan; } }
		#endregion
		#region METHODS
		#endregion
		#endregion
		#region INTERNAL
		#region CONST/STATIC
		#endregion
		#region VARS
		string _uniqueId, _name, _path;
		long _size;
		TimeSpan _uploadTimeSpan;
		#endregion
		#region PROPS
		#endregion
		#region METHODS
		#region INIT
		internal UploadedFile(string uniqueId, string name, string path, long size, TimeSpan uploadTimeSpan)
		{
			this._uniqueId = uniqueId;
			this._name = name;
			this._path = path;
			this._size = size;
			this._uploadTimeSpan = uploadTimeSpan;
		}
		#endregion
		#region DATA
		#endregion
		#region HANDLERS
		#endregion
		#endregion
		#endregion				
				



	}
}
